package org.maylove.wuziqi.pojo.user;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

@Table(name = "user")
@Entity
public class User {
    @Id
    @Column(name = "user_id")
    Long userId;
    @Column(name = "username")
    String username;
    @Column(name = "password")
    String password;
    @Column(name = "nickname")
    String nickname;
    @Column(name = "tot_game_num")
    Integer totGameNum;
    @Column(name = "win_game_num")
    Integer winGameNum;
    @Column(name = "identity")
    Integer identity;
    //  identity    addNotice   deleteOther'sNotice     deleteOther'sQuestion   changeToSmallManager    changToBigManager   deleteOther'sDiscuss
    //  0           false           false                   false                   false                   false               false
    //  1           true            false                   false                   false                   false               false
    //  2           true            true                    true                    true                    false               true
    //  3           true            true                    true                    true                    true                true


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getTotGameNum() {
        return totGameNum;
    }

    public void setTotGameNum(Integer totGameNum) {
        this.totGameNum = totGameNum;
    }

    public Integer getWinGameNum() {
        return winGameNum;
    }

    public void setWinGameNum(Integer winGameNum) {
        this.winGameNum = winGameNum;
    }

    public Integer getIdentity() {
        return identity;
    }

    public void setIdentity(Integer identity) {
        this.identity = identity;
    }
}
